"This is a hyperlink behavior that operates on hyperlink data. " & \
"It will interpret the DATA string depending on what is at the beginning of the string." & RETURN & RETURN & \
"PARAMETERS:" & RETURN & \
"* Use hyperlink styles - Check if you want to use the built in hyperlink style." & RETURN & RETURN & \
"USEAGE:" & RETURN & \
"* URL schemes. " & \
"The following URL schemes are supported by this behavior:" & RETURN & \
" http:// https:// mailto: ftp://" & RETURN & \
"When the data string assigned to a hyperlink starts with one of these schemes, clicking it will perform a gotoNetPage on the URL" & RETURN & \
"* RELATIVE filepaths. " & \
"Relative file paths are supported. " & \
"You may start the hyperlink data string with the following:" & RETURN & \
" ./ ../ @" & RETURN & \
"When the data string assigned to a hyperlink starts with one of these strings, clicking it will perform a gotoNetPage on the filepath." & RETURN & \
"NOTE: the \" & QUOTE & " @ \" & QUOTE & " symbol works in any environment. " & \
"The Unix style path delimiters \" & QUOTE & " ./ \" & QUOTE & " and \" & QUOTE & " ../ \" & QUOTE & " only work from Shockwave." & RETURN & \
"* LINGO. " & \
"Any string starting with \" & QUOTE & "lingo:\" & QUOTE & " will be treated as a Lingo command and will be executed with the Lingo \" & QUOTE & "do\" & QUOTE & " command. " & \
"If your Lingo command requires a quoted string, use single quotes. " & \
"The single quotes will be converted into double quotes before the command is execuited." & RETURN & RETURN & \
"For more information, open this script in the script editor and read the comments at the top."
end getBehaviorDescription
on getBehaviorTooltip me
return \
"Use this behavior on text members containing hyperlink data. " & \
"It will process URL's and Lingo commands."
end getBehaviorTooltip
on beginSprite me
theMember = sprite(spriteNum).member
-- set useHyperlinkStyles on or off
if pHyperStyle = TRUE then
theMember.useHyperTextStyles = 1
else
theMember.useHyperTextStyles = 0
end if
-- parse through each hyperlink and set it to #normal